package com.example.mapper;

import com.example.pojo.entrity.Message;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MessageMapper {
    void insertMessage(Message msg);

    @Delete("delete from message where message_id =#{id}")
    void deleteMessage(String id);
    @Select("select * from messge")
    List<Message> getMessages();
}
